package com.atguigu.mapper;

import com.atguigu.pojo.Article;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleMapper {

    void add(Article article);

    void deleteById(Integer id);

    void update(Article article);

    List<Article> selectAll(Article article);

    Article selectById(Integer id);

    Integer selectCountByDate(String date);
}
